import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SPublicMiniPlayer } from "../Public/SPublicMiniPlayer";
type int = number;
//class SFriendRecord
    
    export  class SFriendRecord
    {
       

        public __write(arg1: SerializeStream): void
        {
            arg1.writeLong(this.recordId);
            this.friendPlayer.__write(arg1);
            arg1.writeString(this.remark);
            arg1.writeInt(this.flag);
            arg1.writeInt(this.intimate);
            arg1.writeInt(this.dailyFlower);
            arg1.writeInt(this.killedTimes);
            arg1.writeDate(this.lastTalkDt);
            arg1.writeDate(this.lastKilledDt);
            arg1.writeDate(this.cornucopiaDt);
            arg1.writeInt(this.friendType);
            return;
        }

        public __read(arg1: SerializeStream): void
        {
            this.recordId = arg1.readLong();
            this.friendPlayer = new SPublicMiniPlayer();
            this.friendPlayer.__read(arg1);
            this.remark = arg1.readString();
            this.flag = arg1.readInt();
            this.intimate = arg1.readInt();
            this.dailyFlower = arg1.readInt();
            this.killedTimes = arg1.readInt();
            this.lastTalkDt = arg1.readDate();
            this.lastKilledDt = arg1.readDate();
            this.cornucopiaDt = arg1.readDate();
            this.friendType = arg1.readInt();
            return;
        }

        public /* var */recordId: number;

        public /* var */friendPlayer: SPublicMiniPlayer;

        public /* var */remark: string;

        public /* var */flag: int;

        public /* var */intimate: int;

        public /* var */dailyFlower: int;

        public /* var */killedTimes: int;

        public /* var */lastTalkDt: Date;

        public /* var */lastKilledDt: Date;

        public /* var */cornucopiaDt: Date;

        public /* var */friendType: int;
    }
